package com.coding.service;

import com.coding.dto.RestBean;
import com.coding.entity.Conversation;
import com.coding.entity.vo.SessionVO;

import java.util.List;

/**
 * @author Cynicism
 * @version 1.0
 * @project DyApp
 * @description
 * @date 2024/7/3 09:48:37
 */
public interface ConversationService {
    /**
     * 插入会话
     * @param userId1
     * @param userId2
     * @return
     */
    RestBean<String> insertConversation(Long userId1, Long userId2);

    /**
     * 删除会话
     * @param userId1
     * @param userId2
     * @return
     */
    RestBean<String> deleteConversation(Long userId1, Long userId2);

    /**
     * 判断会话是否存在
     *
     * @param userId1
     * @param userId2
     * @return
     */
    RestBean<String> conversationExists(Long userId1, Long userId2);


    RestBean<List<SessionVO>> getConversationList(Long userId);

}
